package shapes;

public abstract class Triangle extends Shapes {
    int height;

    public Triangle(int height) {

        this.height = height;
    }

    @Override
    public String dataToString() {

        StringBuilder outputString = new StringBuilder(2*height*height);
        for (int i = 0; i < height; i++) {
            outputString.append(data[i]);
            outputString.append('\n');
        }
        return outputString.toString();
    }
}

